<div class="examplan workorderpreparation">
    <div class="wrap">
        <app-menutab [pageStyle]="{'padding':'0 2px 0 2px','height':'50px'}" [pageName]="'workorderpreparation_sg'">
        </app-menutab>
        <div class="fl p10">
            <span class="fl">
                <ng-container *ngIf="['cjbz','gqbz'].includes(pagetype)">
                    <!-- <ng-container *ngIf="pagetype == 'cjbz'||pagetype == 'gqbz'||pagetype == 'pgdxj';"> -->
                    <button nz-button nzType="primary" (click)="dataviewSubmit(userInfo.N_LEVEL==30?pltb:null)"><i
                            nz-icon nzType="arrow-up"></i>{{userInfo.N_LEVEL==30?'批量提报':'提报'}}</button>
                    <!-- <button style="color: blue;border-color: blue; background-color: #fff" nz-button nzType="primary" (click)="dataviewSubmit()"><i nz-icon
                            nzType="arrow-up"></i>提报</button> -->
                </ng-container>
                <!-- 批量提报弹窗 车间 -->
                <ng-template #pltb>
                    <nz-input-group nzAddOnBefore="把关人员(选填)">
                        <!-- <input style="width: 120px;" nz-input placeholder="输入把关人员" [(ngModel)]="bgryArr"
                            [nzAutocomplete]="auto_bgry" tabindex="-1" (ngModelChange)="bgryChange($event)">
                        <nz-autocomplete #auto_bgry>
                            <nz-auto-option *ngFor="let option of bgryList_filter" [nzValue]="option.opName">
                                {{ option.opName }}
                            </nz-auto-option>
                        </nz-autocomplete> -->
                        <nz-select [(ngModel)]="bgryArr" nzMode="tags" style="width: 100%;">
                            <nz-option *ngFor="let option of bgryList" [nzLabel]="option.opName"
                                [nzValue]="option.opName"></nz-option>
                        </nz-select>
                    </nz-input-group>
                </ng-template>
                <!-- 签收 -->
                <ng-container *ngIf="pagetype == 'gqqs';">
                    <button nz-button nzType="primary" (click)="dataviewSubmit()"><i nz-icon
                            nzType="check-circle"></i>签收</button>
                    <!-- <button style="color: green;border-color: green; background-color: #fff" nz-button nzType="primary" (click)="dataviewSubmit()"><i nz-icon
                            nzType="check-circle"></i>签收</button> -->
                </ng-container>
                <ng-container *ngIf="['cjbz'].includes(pagetype)">
                    <!-- <ng-container *ngIf="pagetype == 'cjbz'||pagetype == 'cjsh'"> -->
                    <button nz-button nzType="primary" (click)="dataviewReject(spyj_xj)"><i nz-icon
                            nzType="close-circle"></i>驳回</button>
                    <!-- <button style="color: red;border-color: red; background-color: #fff" nz-button nzType="primary" (click)="dataviewReject(spyj_xj)"><i nz-icon
                            nzType="close-circle"></i>驳回</button> -->
                </ng-container>

                <ng-container *ngIf="pagetype == 'ddsp'||pagetype == 'ddsh';">
                    <button nz-button nzType="primary" (click)="dataviewSp(true,spyj,spyj_xj)"><i nz-icon
                            nzType="check-circle"></i>批准</button>
                    <!-- <button style="color: green;border-color: green; background-color: #fff" nz-button nzType="primary" (click)="dataviewSp(true,spyj,spyj_xj)"><i nz-icon
                            nzType="check-circle"></i>批准</button> -->
                    <!-- <ng-template #pzContent>
                        <nz-input-group nzAddOnBefore="审批意见">
                            <textarea nz-input [(ngModel)]="vcDdspNote"
                                [nzAutosize]="{minRows:5, maxRows: 10 }"></textarea>
                        </nz-input-group>
                    </ng-template> -->
                </ng-container>
                <ng-container *ngIf="pagetype == 'ddsp';">
                    <button nz-button nzType="primary" (click)="dataviewSp(false,spyj)"><i nz-icon
                            nzType="close-circle"></i>驳回</button>
                    <!-- <button style="color: red;border-color: red; background-color: #fff" nz-button nzType="primary" (click)="dataviewSp(false,spyj)"><i nz-icon
                            nzType="close-circle"></i>驳回</button> -->
                    <!-- <ng-template #bhContent>
                        <nz-input-group nzAddOnBefore="审批意见">
                            <textarea nz-input [(ngModel)]="vcDdspNote"
                                [nzAutosize]="{minRows:5, maxRows: 10 }"></textarea>
                        </nz-input-group>
                    </ng-template> -->
                </ng-container>
                <ng-container *ngIf="pagetype == 'dypgd';">
                    <button nz-button nzType="primary" (click)="export()" nz-tooltip nzTitle="如果出现只下载一个文件的情况，应该是由浏览器弹窗拦截导致，
                    请在 设置页面-内容设置-弹出式窗口和重定向-允许中添加本站地址
                    或直接在新页面中打开chrome://settings/content/popups页面进行设置"><i nz-icon
                            nzType="vertical-align-bottom"></i>导出</button>
                </ng-container>
                <ng-template #spyj>
                    <nz-input-group nzAddOnBefore="审批意见">
                        <textarea nz-input [(ngModel)]="vcDdspNote" [nzAutosize]="{minRows:5, maxRows: 10 }"></textarea>
                    </nz-input-group>
                </ng-template>
                <ng-template #spyj_xj>
                    <nz-input-group nzAddOnBefore="小结审批意见">
                        <textarea nz-input [(ngModel)]="vcDdshXjnote"
                            [nzAutosize]="{minRows:5, maxRows: 10 }"></textarea>
                    </nz-input-group>
                </ng-template>
            </span>
            <span class="fl" style="margin:5px 5px 0 0">
                <ng-container *ngIf="pagetype=='view';">
                    <span class="fl line32">&nbsp;车间&nbsp;</span>
                    <nz-select class="fl planselect" nzAllowClear (ngModelChange)="onChangeCj($event)"
                        [(ngModel)]="queryParam.cj">
                        <nz-option *ngFor="let option of queryData.cjList" [nzLabel]="option.opName"
                            [nzValue]="option.opValue">
                        </nz-option>
                    </nz-select>
                    <span class="fl line32">&nbsp;工区&nbsp;</span>
                    <nz-select class="fl planselect" nzAllowClear (ngModelChange)="onChangeGq($event)"
                        [(ngModel)]="queryParam.gq">
                        <nz-option *ngFor="let option of queryData.gqList" [nzLabel]="option.opName"
                            [nzValue]="option.opValue">
                        </nz-option>
                    </nz-select>
                    <span class="fl line32">&nbsp;车站&nbsp;</span>
                    <nz-select class="fl planselect" nzAllowClear [(ngModel)]="queryParam.cz">
                        <nz-option *ngFor="let option of queryData.czList" [nzLabel]="option.opName"
                            [nzValue]="option.opValue">
                        </nz-option>
                    </nz-select>
                    <!-- 
                        decode(t.vc_status ,'0','修改中','1','领导审批中','2','领导批准','3','领导驳回',
                        '4','车间已签收','5','车间编制中','6','车间已下发', '7','工区已签收编制中',        " +
                " '8','工区提报','9','车间提报','10','车间驳回','11','调度批准','12','调度驳回','13','工区填报完成',
                '14','车间审核完成','15','车间驳回完成','16','调度审核完成','17','调度驳回完成'
                     -->
                    <span class="fl line32">&nbsp;状态&nbsp;</span>
                    <nz-select class="fl planselect" nzAllowClear (ngModelChange)="listOfTagChange($event)"
                        nzMode="multiple" [(ngModel)]="listOfTagOptions">
                        <nz-option *ngFor="let option of listOfOption" [nzLabel]="option.label"
                            [nzValue]="option.value">
                        </nz-option>
                    </nz-select>
                </ng-container>
                <span style="display: flex;">
                    <span class="fl line32">&nbsp;起&nbsp;</span>
                    <nz-date-picker [(ngModel)]="zyrqValue1" nzFormat="yyyy-MM-dd"></nz-date-picker>
                    <span class="fl line32">&nbsp;止&nbsp;</span>
                    <nz-date-picker [(ngModel)]="zyrqValue2" nzFormat="yyyy-MM-dd"></nz-date-picker>
                    &nbsp;
                    <button nz-button nzType="primary" (click)="readyload(1, pageValue)"><i nz-icon
                            nzType="search"></i>查询</button>
                </span>

            </span>
        </div>
        <div class="clear"></div>
        <div class="fl wrap">
            <ng-template #nzNoResult>
                <span style="margin-right: 10px">该日期范围内没有待处理任务，建议去其他页面查看>></span>
                <a *ngIf="pagetype!='view'" [routerLink]="[ '/workorderpreparation_sg','view']">派工单查看</a>
            </ng-template>

            <nz-table #examTable nzSize="small" [nzScroll]="lockHeadScroll" [nzLoadingDelay]="1000"
                [nzLoading]="tableLoading" [nzShowPagination]="false" [nzFrontPagination]="false"
                [nzPageSize]="pageValue" [nzData]="examData" nzBordered [nzNoResult]="nzNoResult"
                (nzCurrentPageDataChange)="currentPageDataChange($event)" (nzPageIndexChange)="refreshStatus()"
                (nzPageSizeChange)="refreshStatus()">
                <thead>
                    <tr>
                        <th nzAlign="center" nzWidth="50px" nzShowCheckbox [(nzChecked)]="allChecked"
                            [nzIndeterminate]="indeterminate" (nzCheckedChange)="checkAll($event)"></th>
                        <th nzAlign="center" nzWidth="50px">序号</th>
                        <th nzAlign="center" nzWidth="50px">颜色</th>
                        <th nzAlign="center" nzWidth="2%">状态</th>
                        <th nzAlign="center" nzWidth="3%" class="yellow">工区</th>
                        <th nzAlign="center" nzWidth="3%" class="yellow">作业地点</th>
                        <th nzAlign="center" nzWidth="3%" class="yellow">作业日期</th>
                        <th nzAlign="center" nzWidth="2%" class="yellow">日计划号</th>
                        <th nzAlign="center" nzWidth="2%" class="yellow">施工类型</th>
                        <th nzAlign="center" nzWidth="2%" class="yellow">级别</th>
                        <th nzAlign="center" nzWidth="3%" class="yellow">作业项目及<br />工作内容</th>
                        <th nzAlign="center" class="yellow">批复计划的工作内容<br />及作业影响范围</th>
                        <th nzAlign="center" nzWidth="3%" class="yellow">天窗内作<br>业时间</th>
                        <th nzAlign="center" nzWidth="3%" class="green">天窗点外<br>作业时间</th>
                        <th nzAlign="center" nzWidth="3%" class="green">工具、材料到达<br>现场的方式</th>
                        <th nzAlign="center" nzWidth="3%" class="green">人员到达及<br>返回路线</th>
                        <th nzAlign="center" nzWidth="3%" class="green">具体工作内容</th>
                        <th nzAlign="center" nzWidth="2%" class="green">作业组长</th>
                        <th nzAlign="center" nzWidth="2%" class="green">检修人</th>
                        <th nzAlign="center" nzWidth="3%" class="green">室内防护员</th>
                        <th nzAlign="center" nzWidth="3%" class="green">室外防护员</th>
                        <th nzAlign="center" nzWidth="3%" class="green">开通技术条件<br>或要求</th>
                        <th nzAlign="center" nzWidth="3%" class="green">作业安全提示</th>
                        <th nzAlign="center" nzWidth="3%" class="green">安全风险<br>防控措施</th>
                        <th nzAlign="center" nzWidth="2%" class="green">工作小结<br>实际时间</th>
                        <th nzAlign="center" nzWidth="2%" class="green">工作小结<br>完成情况</th>
                        <th nzAlign="center" nzWidth="3%" class="green">工作小结遗留问题</th>
                        <th nzAlign="center" nzWidth="2%" class="blue">负责人</th>
                        <th nzAlign="center" nzWidth="2%" class="blue">把关人员</th>
                        <th nzAlign="center" nzWidth="2%" class="blue">车间审核<br>人</th>
                        <th nzAlign="center" nzWidth="2%" class="blue">车间审核<br>时间</th>
                        <th nzAlign="center" nzWidth="2%" class="blue">调度审核<br>人</th>
                        <th nzAlign="center" nzWidth="3%" class="blue">调度审批意见</th>
                        <th nzAlign="center" nzWidth="2%" class="blue">调度审批<br>日期</th>
                        <th nzAlign="center" nzWidth="3%" class="blue">备注</th>
                    </tr>
                </thead>
                <tbody>
                    <tr title="双击查看详情" *ngFor="let item of examTable.data;let i = index"
                        (dblclick)="dataviewDbclick2(item)" nz-tooltip nzTooltipTitle="双击查看详情"
                        nzTooltipPlacement="bottom" style="cursor:pointer" class="doHover">
                        <!-- <ng-container if></ng-container> -->
                        <td *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans" nzShowCheckbox
                            [(nzChecked)]="item.checked" [nzDisabled]="item.disabled"
                            (nzCheckedChange)="refreshStatus($event,i)"></td>
                        <!-- 序号 -->
                        <td nzAlign="center" *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">{{getIbyIndex(i)}}
                        </td>
                        <td nzAlign="center" *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">
                            <span [class]="statusFollow(item.RWXVCSTATUS)"></span>
                        </td>
                        <!-- 状态 -->
                        <td nzAlign="center" *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">
                            {{item.RWXSTATUS}}
                        </td>
                        <!-- 工区 -->
                        <td *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">
                            <div class="cmiddle">{{item.RWXORGNAME}}</div>
                        </td>
                        <!-- 作业地点 -->
                        <td nzAlign="center" *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">
                            <div class="cmiddle">{{item.RWXPLACE}}</div>
                        </td>
                        <!-- 作业日期 -->
                        <td nzAlign="center" *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">
                            {{item.RWXWORKDAY|date:"yyyy-MM-dd"}}</td>
                        <!-- 日计划号 -->
                        <td nzAlign="center" *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">{{item.RWXID}}</td>
                        <!-- 施工类型 -->
                        <td *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">{{item.ISPH}}</td>
                        <!--级别  -->
                        <td nzAlign="center" *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">{{item.RWXLEVEL}}
                        </td>
                        <!--作业项目及工作内容  -->
                        <td *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">
                            <div class="cmiddle" [ngStyle]="{'max-height':105*item.rowspans+'px'}">{{item.RWXTYPE}}
                            </div>
                        </td>
                        <!--批复计划的工作内容  -->
                        <td *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">
                            <div class="cmiddle" [ngStyle]="{'max-height':105*item.rowspans+'px'}">
                                {{item.RWXPROJECT}}</div>
                        </td>
                        <!--天窗内作业时间  -->
                        <td nzAlign="center" *ngIf="item.rowspans>0" [attr.rowspan]="item.rowspans">
                            {{item.RWXSTIME}}-{{item.RWXETIME}}
                        </td>
                        <!-- 天窗点外作业时间  -->
                        <td nzAlign="center">{{(item.VC_SKYWIN$STIME||'')+'-'+(item.VC_SKYWIN$ETIME||'')}}</td>
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_TOOL}}</div>
                        </td>
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_INOUTTYPE}}</div>
                        </td>
                        <!-- <td>{{item.id}}</td> -->
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_WORKORDER}}</div>
                        </td>
                        <td>
                            <div class="cmiddle">{{item.VC_GROUP}}</div>
                        </td>
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_TEAMMEN}}</div>
                        </td>
                        <!-- <td>{{item.id}}</td> -->
                        <!-- <td>{{item.id}}</td> -->
                        <td>
                            <div class="cmiddle">{{item.VC_IN$SAFER}}</div>
                        </td>
                        <td>
                            <div class="cmiddle" [innerHtml]="item._VC_OUT$SAFER"></div>
                        </td>
                        <!-- <td>{{item.id}}</td> -->
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_KTREQUIRE}}</div>
                        </td>
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_RISK$CONTROL}}</div>
                        </td>
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_DINGKONG$REQUIRE}}</div>
                        </td>
                        <td>
                            {{item.VC_WORK$STIME}}-
                            {{item.VC_WORK$ETIME}}
                        </td>
                        <td nzAlign="center">{{item.VC_FINISHEDORNOT=='1'?'已完成':'未完成'}}</td>
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_UNFI$REASON}}</div>
                        </td>
                        <!-- 负责人 -->
                        <td nzAlign="center">
                            <div class="cmiddle">{{item.RWXWAPERSON}}</div>
                        </td>
                        <!-- 把关人员 -->
                        <td nzAlign="center">
                            <div class="cmiddle">{{item.GATEKEEPER}}</div>
                        </td>
                        <!-- 车间审核人 -->
                        <td nzAlign="center">
                            <div class="cmiddle">{{item.WS_APPR_USER}}</div>
                        </td>
                        <!-- 车间审核时间 -->
                        <td nzAlign="center">
                            <div class="cmiddle">{{item.WS_APPR_TIME | date:"yyyy-MM-dd"}}</div>
                        </td>
                        <!-- 调度审核人 -->
                        <td nzAlign="center">
                            <div class="cmiddle">{{item.VC_DDSP$PERSON}}</div>
                        </td>
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_DDSP$NOTE}}</div>
                        </td>
                        <td nzAlign="center">{{item.DT_DDSPDATE | date:"yyyy-MM-dd"}}</td>
                        <!-- <td>{{item.id}}</td> -->
                        <!-- <td>{{item.id}}</td> -->
                        <td>
                            <div class="cmiddle" style="max-height:105px;">{{item.VC_ORDER}}</div>
                        </td>
                    </tr>
                </tbody>
            </nz-table>
            <div class="pageWrap">
                每页
                <nz-select [(ngModel)]="selectedValue" (ngModelChange)="yearselectedChange()">
                    <nz-option nzValue="10" nzLabel="10"></nz-option>
                    <nz-option nzValue="50" nzLabel="50"></nz-option>
                    <nz-option nzValue="100" nzLabel="100"></nz-option>
                    <nz-option nzValue="200" nzLabel="200"></nz-option>
                </nz-select> 条&nbsp;&nbsp;&nbsp;总共<span class="pageTotal">{{pageTotal}}</span>条
            </div>
            <div class="pageInation">
                <nz-pagination [nzPageSize]="selectedValue" [nzPageIndex]="pageIndex" [nzTotal]="rowTotal"
                    (nzPageIndexChange)="rowChangeTable1($event)"></nz-pagination>
            </div>
        </div>
        <ng-container
            *ngIf='!["pgdxj", "cjsh", "ddsh"].includes(pagetype) && mainRow.RWXVCSTATUS != "13"; else pgdxjPanel'>
            <ng-template #dataviewFooter>
                <ng-container *ngIf="editable">
                    <button nz-button nzType="primary" (click)="dataviewOk()">保存</button>
                    <button nz-button nzType="primary"
                        (click)="dataviewSubmit2(userInfo.N_LEVEL==30?pltb:null)">{{userInfo.N_LEVEL==30?'批准':'提报'}}</button>
                </ng-container>
                <button nz-button nzType="primary" (click)="dataviewCancel()">取消</button>
            </ng-template>
            <nz-modal class="examplan2 workorderpreparation" [nzVisible]="dataviewVisible" nzWidth="1200" nzTitle="数据查看"
                [nzFooter]="dataviewFooter" (nzOnCancel)="dataviewCancel()">
                <ng-template #extraTemplate>
                    <!-- <i *ngIf="editable" class="ant-tabs-new-tab" nz-icon nzType="plus" (click)="newTab()"></i> -->
                    <i *ngIf="editable" class="ant-tabs-new-tab" nz-icon nzType="plus" (click)="newTab()"
                        title="新增"></i>
                    <i *ngIf="editable" class="ant-tabs-new-tab" nz-icon nzType="copy" style="margin-left: 10px;"
                        (click)="newTab_allCopy()" title="复制"></i>
                </ng-template>
                <nz-tabset [nzType]="'card'" [nzTabBarGutter]="'5'" [nzTabBarExtraContent]="extraTemplate"
                    [nzSelectedIndex]="tabActiveIndex" (nzSelectedIndexChange)="onTabIndexChange($event)">
                    <nz-tab *ngFor="let tab of dataviewTabs;index as i" [nzTitle]="titleTemplate">
                        <ng-template #titleTemplate>
                            <div>
                                <span *ngIf="i != 0;else anothertab">
                                    {{tab}}【{{i}}】
                                    <i nz-icon nzType="close" (click)="closeTab(tab)" class="ant-tabs-close-x"></i>
                                </span>
                                <ng-template #anothertab>{{tab}}</ng-template>
                            </div>
                        </ng-template>
                        <ng-container *ngIf="i!=0;else anothercontent">
                            <div *ngIf="tabsVisiable[i]==true">
                                <div style="display: flex">
                                    <nz-input-group nzAddOnBefore="作业项目">
                                        <!-- <nz-select [(ngModel)]="addData[i-1].vcProject" style="width: 100%;">
                                                    <nz-option *ngFor="let data of tabCmpData.zyxmList" [nzLabel]="data.opName"
                                                        [nzValue]="data.opValue"></nz-option>
                                                </nz-select> -->
                                        <input type="text" nz-input [(ngModel)]="addData[i-1].vcProject">
                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="工区">
                                        <nz-select (ngModelChange)="workorgselectedChange($event,i-1)"
                                            [(ngModel)]="addData[i-1].vcOrgId" [nzDisabled]="!editable"
                                            style="width: 100%;">
                                            <nz-option *ngFor="let data of tabCmpData[i-1].orgselectedList"
                                                [nzLabel]="data.opName" [nzValue]="data.opValue"></nz-option>
                                        </nz-select>
                                    </nz-input-group>
                                </div>
                                <div style="display: flex">
                                    <nz-input-group nzAddOnBefore="作业车站">
                                        <nz-tree-select (ngModelChange)="workstaselectedChange($event,i-1)"
                                            [nzDropdownStyle]="treeNodeStyle" style="width: 100%"
                                            [nzNodes]="tabCmpData[i-1].staselectedList" [(ngModel)]="addData[i-1].vcSta"
                                            [nzDisabled]="!editable">
                                        </nz-tree-select>
                                        <!-- <nz-select (ngModelChange)="workstaselectedChange($event,i-1)"
                                            [(ngModel)]="addData[i-1].vcSta" style="width: 100%;" [nzDisabled]="!editable">
                                            <ng-container *ngFor="let data of tabCmpData[i-1].staselectedList">
                                                <nz-option
                                                    *ngIf="!data.childselectOptions || data.childselectOptions.length===0;else anothergroup"
                                                    nzCustomContent [nzValue]="data.opValue" [nzLabel]="data.opName">
                                                    {{data.opName}}</nz-option>
                                                <ng-template #anothergroup>
                                                    <nz-option-group [nzLabel]="data.opName">
                                                        <nz-option *ngFor="let item of data.childselectOptions"
                                                            nzCustomContent [nzValue]="item.opValue"
                                                            [nzLabel]="item.opName">{{item.opName}}</nz-option>
                                                    </nz-option-group>
                                                </ng-template>
                                            </ng-container>
                                        </nz-select> -->
                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="设备类型">
                                        <nz-tree-select *ngIf="zorronigebiaozi"
                                            (ngModelChange)="workdevTypeselectedChange($event,i-1)"
                                            [nzDropdownStyle]="treeNodeStyle" style="width: 100%"
                                            [nzNodes]="tabCmpData[i-1].workdevTypeselectedList"
                                            [(ngModel)]="addData[i-1].vcEquType" [nzDisabled]="!editable">
                                        </nz-tree-select>
                                        <!-- <nz-select *ngIf="zorronigebiaozi"
                                            (ngModelChange)="workdevTypeselectedChange($event,i-1)"
                                            [nzDisabled]="!editable" style="width: 100%;"
                                            [(ngModel)]="addData[i-1].vcEquType" [nzDropdownStyle]="{width:'400px'}">
                                            <nz-option-group
                                                *ngFor="let data of tabCmpData[i-1].workdevTypeselectedList"
                                                [nzLabel]="data.text">
                                                <nz-option *ngFor="let item of data.children" [nzValue]="item.id"
                                                    [nzLabel]="item.text">
                                                </nz-option>
                                            </nz-option-group>
                                        </nz-select> -->
                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="设备分级">
                                        <nz-select (ngModelChange)="workdevLevelselectedChange($event,i-1)"
                                            [(ngModel)]="addData[i-1].vcEquClass" style="width: 100%;"
                                            [nzDisabled]="!editable">
                                            <nz-option *ngFor="let data of tabCmpData[i-1].workdevLevelselectedList"
                                                [nzLabel]="data.levelName" [nzValue]="data.levelCode"></nz-option>
                                        </nz-select>
                                    </nz-input-group>
                                </div>
                                <div style="display: flex">
                                    <nz-input-group nzAddOnBefore="作业设备">
                                        <div
                                            *ngIf="tabCmpData[i-1].workdevListForsel&&tabCmpData[i-1].workdevListForsel.length>0">
                                            <label nz-col nz-checkbox [(ngModel)]="data.checked"
                                                [nzDisabled]='!editable'
                                                *ngFor="let data of tabCmpData[i-1].workdevListForsel;">{{data.opName}}</label>
                                        </div>
                                        <div>
                                            <input type="text" placeholder="新增设备，多个设备请以中文或英文逗号分隔" nz-input
                                                [(ngModel)]="addData[i-1]._adddevnames" [disabled]="!editable"
                                                style="width: 100%" />
                                        </div>
                                    </nz-input-group>
                                </div>
                                <div style="display: flex">
                                    <nz-input-group nzAddOnBefore="小组长">
                                        <ng-container *ngIf="isGq; else notGq1">
                                            <nz-select *ngIf="freshTree;else peopleInput1" [nzDisabled]="!editable"
                                                [(ngModel)]="addData[i-1].vcGroup" style="width: 100%">
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq1>
                                            <nz-tree-select *ngIf="freshTree;else peopleInput1" style="width: 100%"
                                                [nzNodes]="this.tabCmpData[i-1].peopleList" [nzDisabled]="!editable"
                                                (ngModelChange)="onPeopleChange_single($event,i,'vcGroup')"
                                                (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                [(ngModel)]="addData[i-1].vcGroup" [nzDropdownStyle]="dropdownStyle">
                                            </nz-tree-select>
                                        </ng-template>
                                        <ng-template #peopleInput1>
                                            <input nz-input [(ngModel)]="addData[i-1].vcGroup" disabled>
                                        </ng-template>
                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="室内防护员">
                                        <ng-container *ngIf="isGq; else notGq2">
                                            <nz-select *ngIf="freshTree;else peopleInput2" [nzDisabled]="!editable"
                                                [(ngModel)]="addData[i-1].vcInSafer" style="width: 100%">
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq2>
                                            <nz-tree-select *ngIf="freshTree;else peopleInput2" style="width: 100%"
                                                [nzNodes]="this.tabCmpData[i-1].peopleList" [nzDisabled]="!editable"
                                                (ngModelChange)="onPeopleChange_single($event,i,'vcInSafer')"
                                                (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                [(ngModel)]="addData[i-1].vcInSafer" [nzDropdownStyle]="dropdownStyle">
                                            </nz-tree-select>
                                        </ng-template>
                                        <ng-template #peopleInput2>
                                            <input nz-input [(ngModel)]="addData[i-1].vcInSafer" disabled>
                                        </ng-template>
                                    </nz-input-group>
                                </div>
                                <div style="display: flex">
                                    <ng-template #swfhy>
                                        室外防护员
                                        <!-- {{swfwy_isNormal[i-1]?'':'(上下行)'}} -->
                                        <br>
                                        <!-- <a (click)="switch_swfwy(i-1)">切换</a> -->
                                    </ng-template>
                                    <!-- 室外防护员普通 -->
                                    <nz-input-group *ngIf="swfwy_isNormal[i-1]" [nzAddOnBefore]="swfhy" width="30%">
                                        <ng-container *ngIf="isGq; else notGq3pt">
                                            <nz-select *ngIf="freshTree;else peopleInput3" [nzDisabled]="!editable"
                                                nzMode="multiple" [(ngModel)]="addData[i-1]._vcOutSafer"
                                                style="width: 100%">
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq3pt>
                                            <nz-tree-select *ngIf="freshTree;else peopleInput3" style="width: 100%"
                                                [nzNodes]="this.tabCmpData[i-1].peopleList" [nzDisabled]="!editable"
                                                (ngModelChange)="onPeopleChange($event,i)"
                                                (nzTreeClick)="onPeopleNodeClick($event,i)" nzMultiple="true"
                                                [(ngModel)]="addData[i-1]._vcOutSafer"
                                                [nzDropdownStyle]="dropdownStyle">
                                            </nz-tree-select>
                                        </ng-template>
                                        <ng-template #peopleInput3>
                                            <input nz-input [(ngModel)]="addData[i-1].vcOutSafer" disabled>
                                        </ng-template>
                                    </nz-input-group>

                                    <!-- 室外防护员上下行 -->
                                    <nz-input-group *ngIf="!swfwy_isNormal[i-1]" [nzAddOnBefore]="swfhy" width="30%">
                                        <ng-container *ngIf="isGq; else notGq3sxx">
                                            <nz-select *ngIf="freshTree;else peopleInput3" [nzDisabled]="!editable"
                                                nzMode="multiple" [(ngModel)]="addData[i-1]._vcOutSafer1"
                                                style="width: 100%">
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                            <nz-select *ngIf="freshTree;else peopleInput3" [nzDisabled]="!editable"
                                                nzMode="multiple" [(ngModel)]="addData[i-1]._vcOutSafer2"
                                                style="width: 100%">
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq3sxx>
                                            <div style="display:flex;width: 100%">
                                                <span style="margin-top: 6px;">上行方向:</span>
                                                <nz-tree-select *ngIf="freshTree;else peopleInput3sx"
                                                    style="width: calc(100% - 9ch)"
                                                    [nzNodes]="this.tabCmpData[i-1].peopleList" [nzDisabled]="!editable"
                                                    (ngModelChange)="onPeopleChange($event,i)"
                                                    (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                    [(ngModel)]="addData[i-1]._vcOutSafer1"
                                                    [nzDropdownStyle]="dropdownStyle" nzMultiple="true">
                                                </nz-tree-select>
                                                <ng-template #peopleInput3sx>
                                                    <input nz-input
                                                        [ngModel]="addData[i-1]._vcOutSafer1?addData[i-1]._vcOutSafer1.join('、'):''"
                                                        disabled style="width: calc(100% - 9ch)">
                                                </ng-template>
                                            </div>
                                            <div style="display:flex;width: 100%">
                                                <span style="margin-top: 6px;">下行方向:</span>
                                                <nz-tree-select *ngIf="freshTree;else peopleInput3xx"
                                                    style="width: calc(100% - 9ch)"
                                                    [nzNodes]="this.tabCmpData[i-1].peopleList" [nzDisabled]="!editable"
                                                    (ngModelChange)="onPeopleChange($event,i)"
                                                    (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                    [(ngModel)]="addData[i-1]._vcOutSafer2"
                                                    [nzDropdownStyle]="dropdownStyle" nzMultiple="true">
                                                </nz-tree-select>
                                                <ng-template #peopleInput3xx>
                                                    <input nz-input
                                                        [ngModel]="addData[i-1]._vcOutSafer2?addData[i-1]._vcOutSafer2.join('、'):''"
                                                        disabled style="width: calc(100% - 9ch)">
                                                </ng-template>
                                            </div>
                                        </ng-template>

                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="检修人员">
                                        <ng-container *ngIf="isGq; else notGq4">
                                            <nz-select *ngIf="freshTree;else peopleInput4" [nzDisabled]="!editable"
                                                [(ngModel)]="addData[i-1]._vcTeammen" style="width: 100%"
                                                nzMode="multiple">
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq4>
                                            <nz-tree-select *ngIf="freshTree;else peopleInput4" style="width: 100%"
                                                [nzNodes]="this.tabCmpData[i-1].peopleList" [nzDisabled]="!editable"
                                                [(ngModel)]="addData[i-1]._vcTeammen" nzMultiple="true"
                                                (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                (ngModelChange)="onPeopleChange($event,i)"
                                                [nzDropdownStyle]="dropdownStyle">
                                            </nz-tree-select>
                                        </ng-template>
                                        <ng-template #peopleInput4>
                                            <!-- <input nz-input [(ngModel)]="addData[i-1].vcTeammenNames" disabled> -->
                                            <textarea nz-input [(ngModel)]="addData[i-1].vcTeammenNames"
                                                [nzAutosize]="{ minRows:3 }" readonly></textarea>
                                        </ng-template>
                                    </nz-input-group>
                                </div>
                                <nz-input-group [nzAddOnBefore]="pfjhgznrjzyyxfw1">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXPROJECT"
                                        [nzAutosize]="{ minRows:2, maxRows: 5 }" [disabled]="!editable"></textarea>
                                </nz-input-group>
                                <ng-template #pfjhgznrjzyyxfw1>
                                    批复计划的工作内容<br>及作业影响范围
                                </ng-template>
                                <nz-input-group nzAddOnBefore="作业内容">
                                    <textarea nz-input cols="30" [(ngModel)]="addData[i-1].vcWorkorder"
                                        [disabled]="!editable" [nzAutosize]="{minRows:3}"></textarea>
                                </nz-input-group>
                                <nz-input-group [nzAddOnBefore]="gongqijuzhunbei">
                                    <textarea nz-input [nzAutosize]="{minRows:3}" [(ngModel)]="addData[i-1].vcTool"
                                        [disabled]="!editable"></textarea>
                                </nz-input-group>
                                <ng-template #gongqijuzhunbei>
                                    工器具<br>&nbsp;准备&nbsp;
                                </ng-template>
                                <nz-input-group [nzAddOnBefore]="zuoyementitle">
                                    <textarea nz-input [nzAutosize]="{minRows:3}" [(ngModel)]="addData[i-1].vcInouttype"
                                        [disabled]="!editable"></textarea>
                                </nz-input-group>
                                <ng-template #zuoyementitle>
                                    出入方式<br>时间<br>作业门
                                </ng-template>
                                <nz-input-group [nzAddOnBefore]="kaitongjishutitle">
                                    <textarea nz-input [nzAutosize]="{minRows:3}" [(ngModel)]="addData[i-1].vcKtrequire"
                                        [disabled]="!editable"></textarea>
                                </nz-input-group>
                                <ng-template #kaitongjishutitle>
                                    开通<br>技术条件<br>或要求
                                </ng-template>
                                <nz-input-group [nzAddOnBefore]="sanfangfengxian">
                                    <textarea nz-input [nzAutosize]="{minRows:3}"
                                        [(ngModel)]="addData[i-1].vcRiskControl" [disabled]="!editable"
                                        (dblclick)="sanfangClick($event,temp_sanfang,i-1)"></textarea>
                                </nz-input-group>
                                <ng-template #sanfangfengxian>
                                    三防<br>作业风险<br>提示
                                </ng-template>
                                <ng-template #temp_sanfang>
                                    <iframe style="width: 100%;height: 70vh;" src="/csmis/sanfangshouye/index.html"
                                        frameborder="0"></iframe>
                                </ng-template>
                                <nz-input-group [nzAddOnBefore]="sanfanganquan">
                                    <textarea nz-input [nzAutosize]="{minRows:3}"
                                        [(ngModel)]="addData[i-1].vcDingkongRequire" [disabled]="!editable"></textarea>
                                </nz-input-group>
                                <ng-template #sanfanganquan>
                                    三防<br>安全防控<br>措施
                                </ng-template>
                            </div>
                        </ng-container>

                        <ng-template #anothercontent>
                            <div>
                                <nz-input-group nzAddOnBefore="工区">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXORGNAME" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="作业地点">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXPLACE" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="作业日期">
                                    <textarea nz-input readonly>{{mainRow.RWXWORKDAY|date:"yyyy-MM-dd"}}</textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="日计划号">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXID" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="级别">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXLEVEL" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="作业项目及工作内容">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXTYPE" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group [nzAddOnBefore]="pfjhgznrjzyyxfw">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXPROJECT"
                                        [nzAutosize]="{ minRows:2, maxRows: 5 }" readonly></textarea>
                                </nz-input-group>
                                <ng-template #pfjhgznrjzyyxfw>
                                    批复计划的工作内容<br>及作业影响范围
                                </ng-template>
                                <nz-input-group nzAddOnBefore="天窗内作业时间">
                                    <!-- [(ngModel)]="mainRow.RWXSTIME" -->
                                    <textarea nz-input readonly>{{mainRow.RWXSTIME}}-{{mainRow.RWXETIME}}</textarea>
                                </nz-input-group>
                            </div>
                        </ng-template>
                    </nz-tab>
                </nz-tabset>

            </nz-modal>
        </ng-container>
        <ng-template #pgdxjPanel>
            <ng-template #summaryFooter>
                <ng-container *ngIf="pagetype=='ddsh'; else btnPgdxj_ddsh">
                    <button nz-button nzType="primary" (click)="summaryCancel()">关闭</button>
                </ng-container>
                <ng-template #btnPgdxj_ddsh>
                    <button nz-button nzType="primary" *ngIf="!sumaryDisable" (click)="summaryOk()">保存小结</button>
                    <button nz-button nzType="primary" (click)="summaryCancel()">取消</button>
                </ng-template>
            </ng-template>
            <nz-modal class="examplan workorderpreparation" [nzVisible]="summaryVisible" nzWidth="1200" nzTitle="作业小结"
                [nzFooter]="summaryFooter" (nzOnCancel)="summaryCancel()">
                <nz-tabset [nzType]="'card'" [nzTabBarGutter]="'5'" [nzTabBarExtraContent]="extraTemplate"
                    [nzSelectedIndex]="tabActiveIndex" (nzSelectedIndexChange)="onTabIndexChange($event)">
                    <nz-tab *ngFor="let tab of dataviewTabs;index as i" [nzTitle]="titleTemplate">
                        <!-- <div style="height: 500px;overflow: scroll"> -->
                        <ng-template #titleTemplate>
                            <div>
                                <span *ngIf="i != 0;else anothertab">
                                    {{tab}}【{{i}}】
                                    <i nz-icon nzType="close" (click)="closeTab(tab)" class="ant-tabs-close-x"></i>
                                </span>
                                <ng-template #anothertab>{{tab}}</ng-template>
                            </div>
                        </ng-template>
                        <ng-container *ngIf="i!=0;else anothercontent2">
                            <div style="height: 300px;overflow: scroll">
                                <div style="display: flex">
                                    <nz-input-group nzAddOnBefore="作业项目">
                                        <!-- <nz-select [(ngModel)]="addData[i-1].vcProject" style="width: 100%;" nzDisabled>
                                                <nz-option *ngFor="let data of tabCmpData.zyxmList" [nzLabel]="data.opName"
                                                    [nzValue]="data.opValue"></nz-option>
                                            </nz-select> -->
                                        <input type="text" nz-input [(ngModel)]="addData[i-1].vcProject" readonly>
                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="工区">
                                        <nz-select (ngModelChange)="workorgselectedChange($event,i-1)"
                                            [(ngModel)]="addData[i-1].vcOrgId" style="width: 100%;" nzDisabled>
                                            <nz-option *ngFor="let data of tabCmpData[i-1].orgselectedList"
                                                [nzLabel]="data.opName" [nzValue]="data.opValue"></nz-option>
                                        </nz-select>
                                    </nz-input-group>
                                </div>
                                <div style="display: flex">
                                    <nz-input-group nzAddOnBefore="作业车站">
                                        <nz-tree-select (ngModelChange)="workstaselectedChange($event,i-1)"
                                            [nzDropdownStyle]="treeNodeStyle" style="width: 100%"
                                            [nzNodes]="tabCmpData[i-1].staselectedList" [(ngModel)]="addData[i-1].vcSta"
                                            nzDisabled>
                                        </nz-tree-select>
                                        <!-- <nz-select (ngModelChange)="workstaselectedChange($event,i-1)"
                                            [(ngModel)]="addData[i-1].vcSta" style="width: 100%;" nzDisabled>
                                            <ng-container *ngFor="let data of tabCmpData[i-1].staselectedList">
                                                <nz-option
                                                    *ngIf="!data.childselectOptions || data.childselectOptions.length===0;else anothergroup"
                                                    nzCustomContent [nzValue]="data.opValue" [nzLabel]="data.opName">
                                                    {{data.opName}}</nz-option>
                                                <ng-template #anothergroup>
                                                    <nz-option-group [nzLabel]="data.opName">
                                                        <nz-option *ngFor="let item of data.childselectOptions"
                                                            nzCustomContent [nzValue]="item.opValue"
                                                            [nzLabel]="item.opName">{{item.opName}}</nz-option>
                                                    </nz-option-group>
                                                </ng-template>
                                            </ng-container>
                                        </nz-select> -->
                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="设备类型">
                                        <nz-tree-select *ngIf="zorronigebiaozi"
                                            (ngModelChange)="workdevTypeselectedChange($event,i-1)"
                                            [nzDropdownStyle]="treeNodeStyle" style="width: 100%"
                                            [nzNodes]="tabCmpData[i-1].workdevTypeselectedList"
                                            [(ngModel)]="addData[i-1].vcEquType" nzDisabled>
                                        </nz-tree-select>
                                        <!-- <nz-select *ngIf="zorronigebiaozi" nzDisabled
                                            (ngModelChange)="workdevTypeselectedChange($event,i-1)" style="width: 100%;"
                                            [(ngModel)]="addData[i-1].vcEquType" [nzDropdownStyle]="{width:'400px'}">
                                            <nz-option-group
                                                *ngFor="let data of tabCmpData[i-1].workdevTypeselectedList"
                                                [nzLabel]="data.text">
                                                <nz-option *ngFor="let item of data.children" [nzValue]="item.id"
                                                    [nzLabel]="item.text">
                                                </nz-option>
                                            </nz-option-group>
                                        </nz-select> -->
                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="设备分级">
                                        <nz-select (ngModelChange)="workdevLevelselectedChange($event,i-1)" nzDisabled
                                            [(ngModel)]="addData[i-1].vcEquClass" style="width: 100%;">
                                            <nz-option *ngFor="let data of tabCmpData[i-1].workdevLevelselectedList"
                                                [nzLabel]="data.levelName" [nzValue]="data.levelCode"></nz-option>
                                        </nz-select>
                                    </nz-input-group>
                                </div>
                                <div style="display: flex">
                                    <nz-input-group nzAddOnBefore="作业设备">
                                        <div>
                                            <label nz-col nz-checkbox [(ngModel)]="data.checked" nzDisabled
                                                *ngFor="let data of tabCmpData[i-1].workdevListForsel;">{{data.opName}}</label>
                                        </div>
                                    </nz-input-group>
                                </div>
                                <div style="display: flex">
                                    <nz-input-group nzAddOnBefore="小组长">
                                        <ng-container *ngIf="isGq; else notGq1">
                                            <nz-select *ngIf="freshTree;else peopleInput1"
                                                [(ngModel)]="addData[i-1].vcGroup" style="width: 100%" nzDisabled>
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq1>
                                            <nz-tree-select *ngIf="freshTree;else peopleInput1" style="width: 100%"
                                                nzDisabled [nzNodes]="this.tabCmpData[i-1].peopleList"
                                                (ngModelChange)="onPeopleChange_single($event,i,'vcGroup')"
                                                (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                [(ngModel)]="addData[i-1].vcGroup" [nzDropdownStyle]="dropdownStyle">
                                            </nz-tree-select>
                                        </ng-template>
                                        <ng-template #peopleInput1>
                                            <input nz-input [(ngModel)]="addData[i-1].vcGroup" disabled>
                                        </ng-template>
                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="室内防护员">
                                        <ng-container *ngIf="isGq; else notGq2">
                                            <nz-select *ngIf="freshTree;else peopleInput2"
                                                [(ngModel)]="addData[i-1].vcInSafer" style="width: 100%" nzDisabled>
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq2>
                                            <nz-tree-select *ngIf="freshTree;else peopleInput2" style="width: 100%"
                                                nzDisabled [nzNodes]="this.tabCmpData[i-1].peopleList"
                                                (ngModelChange)="onPeopleChange_single($event,i,'vcInSafer')"
                                                (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                [(ngModel)]="addData[i-1].vcInSafer" [nzDropdownStyle]="dropdownStyle">
                                            </nz-tree-select>
                                        </ng-template>
                                        <ng-template #peopleInput2>
                                            <input nz-input [(ngModel)]="addData[i-1].vcInSafer" disabled>
                                        </ng-template>
                                    </nz-input-group>
                                </div>
                                <div style="display: flex">
                                    <ng-template #swfhy_xj>
                                        室外防护员
                                        <!-- {{swfwy_isNormal[i-1]?'':'(上下行)'}} -->
                                        <br>
                                        <!-- <a (click)="switch_swfwy(i-1)">切换</a> -->
                                    </ng-template>
                                    <!-- 室外防护员普通 -->
                                    <nz-input-group *ngIf="swfwy_isNormal[i-1]" [nzAddOnBefore]="swfhy_xj"
                                        [nzAddOnBefore]="swfhy_xj" width="30%">
                                        <ng-container *ngIf="isGq; else notGq3ptxj">
                                            <nz-select *ngIf="freshTree;else peopleInput3" nzMode="multiple"
                                                [(ngModel)]="addData[i-1]._vcOutSafer" style="width: 100%" nzDisabled>
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq3ptxj>
                                            <nz-tree-select *ngIf="freshTree;else peopleInput3" style="width: 100%"
                                                nzDisabled [nzNodes]="this.tabCmpData[i-1].peopleList"
                                                (ngModelChange)="onPeopleChange($event,i)"
                                                (nzTreeClick)="onPeopleNodeClick($event,i)" nzMultiple="true"
                                                [(ngModel)]="addData[i-1]._vcOutSafer"
                                                [nzDropdownStyle]="dropdownStyle">
                                            </nz-tree-select>
                                        </ng-template>
                                        <ng-template #peopleInput3>
                                            <input nz-input [(ngModel)]="addData[i-1].vcOutSafer" disabled>
                                        </ng-template>
                                    </nz-input-group>

                                    <!-- 室外防护员上下行 -->
                                    <nz-input-group *ngIf="!swfwy_isNormal[i-1]" [nzAddOnBefore]="swfhy_xj" width="30%">
                                        <ng-container *ngIf="isGq; else notGq3sxxxj">
                                            <nz-select *ngIf="freshTree;else peopleInput3" [nzDisabled]="!editable"
                                                nzMode="multiple" [(ngModel)]="addData[i-1]._vcOutSafer1"
                                                style="width: 100%">
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                            <nz-select *ngIf="freshTree;else peopleInput3" [nzDisabled]="!editable"
                                                nzMode="multiple" [(ngModel)]="addData[i-1]._vcOutSafer2"
                                                style="width: 100%">
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq3sxxxj>
                                            <div style="display:flex;width: 100%">
                                                <span style="margin-top: 6px;">上行方向:</span>
                                                <nz-tree-select *ngIf="freshTree;else peopleInput3sx_xj"
                                                    style="width: calc(100% - 9ch)"
                                                    [nzNodes]="this.tabCmpData[i-1].peopleList" [nzDisabled]="!editable"
                                                    (ngModelChange)="onPeopleChange($event,i)"
                                                    (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                    [(ngModel)]="addData[i-1]._vcOutSafer1"
                                                    [nzDropdownStyle]="dropdownStyle" nzMultiple="true">
                                                </nz-tree-select>
                                                <ng-template #peopleInput3sx_xj>
                                                    <input nz-input
                                                        [ngModel]="addData[i-1]._vcOutSafer1?addData[i-1]._vcOutSafer1.join('、'):''"
                                                        disabled style="width: calc(100% - 9ch)">
                                                </ng-template>
                                            </div>
                                            <div style="display:flex;width: 100%">
                                                <span style="margin-top: 6px;">下行方向:</span>
                                                <nz-tree-select *ngIf="freshTree;else peopleInput3xx_xj"
                                                    style="width: calc(100% - 9ch)"
                                                    [nzNodes]="this.tabCmpData[i-1].peopleList" [nzDisabled]="!editable"
                                                    (ngModelChange)="onPeopleChange($event,i)"
                                                    (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                    [(ngModel)]="addData[i-1]._vcOutSafer2"
                                                    [nzDropdownStyle]="dropdownStyle" nzMultiple="true">
                                                </nz-tree-select>
                                                <ng-template #peopleInput3xx_xj>
                                                    <input nz-input
                                                        [ngModel]="addData[i-1]._vcOutSafer2?addData[i-1]._vcOutSafer2.join('、'):''"
                                                        disabled style="width: calc(100% - 9ch)">
                                                </ng-template>
                                            </div>
                                        </ng-template>

                                    </nz-input-group>
                                    <nz-input-group nzAddOnBefore="检修人员">
                                        <ng-container *ngIf="isGq; else notGq4">
                                            <nz-select *ngIf="freshTree;else peopleInput4"
                                                [(ngModel)]="addData[i-1]._vcTeammen" style="width: 100%"
                                                nzMode="multiple" nzDisabled>
                                                <nz-option *ngFor="let data of peopleList" [nzValue]="data.opValue"
                                                    [nzLabel]="data.opName">
                                                </nz-option>
                                            </nz-select>
                                        </ng-container>
                                        <ng-template #notGq4>
                                            <nz-tree-select *ngIf="freshTree;else peopleInput4" style="width: 100%"
                                                nzDisabled [nzNodes]="this.tabCmpData[i-1].peopleList"
                                                [(ngModel)]="addData[i-1]._vcTeammen" nzMultiple="true"
                                                (nzTreeClick)="onPeopleNodeClick($event,i)"
                                                (ngModelChange)="onPeopleChange($event,i)"
                                                [nzDropdownStyle]="dropdownStyle">
                                            </nz-tree-select>
                                        </ng-template>
                                        <ng-template #peopleInput4>
                                            <!-- <input nz-input [(ngModel)]="addData[i-1].vcTeammenNames" disabled> -->
                                            <textarea nz-input [(ngModel)]="addData[i-1].vcTeammenNames"
                                                [nzAutosize]="{ minRows:3 }" readonly></textarea>
                                        </ng-template>
                                    </nz-input-group>
                                </div>
                                <nz-input-group [nzAddOnBefore]="pfjhgznrjzyyxfw1">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXPROJECT"
                                        [nzAutosize]="{ minRows:2, maxRows: 10 }" readonly></textarea>
                                </nz-input-group>
                                <ng-template #pfjhgznrjzyyxfw1>
                                    批复计划的工作内容<br>及作业影响范围
                                </ng-template>
                                <nz-input-group nzAddOnBefore="作业内容">
                                    <textarea nz-input [(ngModel)]="addData[i-1].vcWorkorder"
                                        [nzAutosize]="{ maxRows: 10 }" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group [nzAddOnBefore]="gongqijuzhunbei">
                                    <textarea nz-input [(ngModel)]="addData[i-1].vcTool" readonly></textarea>
                                </nz-input-group>
                                <ng-template #gongqijuzhunbei>
                                    工器具<br>&nbsp;准备&nbsp;
                                </ng-template>
                                <nz-input-group [nzAddOnBefore]="zuoyementitle">
                                    <textarea nz-input [(ngModel)]="addData[i-1].vcInouttype" readonly
                                        [nzAutosize]="{minRows:3}"></textarea>
                                </nz-input-group>
                                <ng-template #zuoyementitle>
                                    出入方式<br>时间<br>作业门
                                </ng-template>
                                <nz-input-group [nzAddOnBefore]="kaitongjishutitle">
                                    <textarea nz-input [(ngModel)]="addData[i-1].vcKtrequire" readonly
                                        [nzAutosize]="{minRows:3}"></textarea>
                                </nz-input-group>
                                <ng-template #kaitongjishutitle>
                                    开通<br>技术条件<br>或要求
                                </ng-template>
                                <nz-input-group [nzAddOnBefore]="sanfangfengxian">
                                    <textarea nz-input [(ngModel)]="addData[i-1].vcRiskControl" readonly
                                        [nzAutosize]="{minRows:3}"></textarea>
                                </nz-input-group>
                                <ng-template #sanfangfengxian>
                                    三防<br>作业风险<br>提示
                                </ng-template>
                                <nz-input-group [nzAddOnBefore]="sanfanganquan">
                                    <textarea nz-input [(ngModel)]="addData[i-1].vcDingkongRequire" readonly
                                        [nzAutosize]="{minRows:3}"></textarea>
                                </nz-input-group>
                                <ng-template #sanfanganquan>
                                    三防<br>安全防控<br>措施
                                </ng-template>
                            </div>
                            <div nz-row style="padding: 20px 10px 15px 10px">
                                <div nzAlign="center" nz-col nzSpan="24" style="text-align: center">
                                    <span style="font-size: 16px">填写作业小结</span>
                                </div>
                            </div>
                            <div nz-row>
                                <div nz-col nzSpan="8">
                                    <nz-input-group nzAddOnBefore="实际开始时间">
                                        <nz-time-picker [(ngModel)]="addData[i-1]._vcWorkStime" nzFormat="HH:mm">
                                        </nz-time-picker>
                                    </nz-input-group>
                                    <!-- 实际开始时间:
                                        <nz-time-picker [(ngModel)]="addData[i-1]._vcWorkStime" nzFormat="HH:mm"
                                            nzPopupClassName="xjTimePicker"></nz-time-picker> -->
                                </div>
                                <div nz-col nzSpan="8">
                                    <nz-input-group nzAddOnBefore="实际结束时间">
                                        <nz-time-picker [(ngModel)]="addData[i-1]._vcWorkEtime" nzFormat="HH:mm">
                                        </nz-time-picker>
                                    </nz-input-group>
                                    <!-- 实际结束时间:
                                        <nz-time-picker [(ngModel)]="addData[i-1]._vcWorkEtime" nzFormat="HH:mm"
                                            nzPopupClassName="xjTimePicker">
                                        </nz-time-picker> -->
                                </div>
                                <div nz-col nzSpan="8">
                                    <nz-input-group nzAddOnBefore="是否完成">
                                        <!-- <div style="padding: 5px">
                                            <label nz-col nz-checkbox [(ngModel)]="addData[i-1]._vcFinishedornot">
                                                {{addData[i-1]._vcFinishedornot==true?'(已完成)':'(未完成)'}}
                                            </label>
                                        </div> -->
                                        <nz-radio-group [(ngModel)]="addData[i-1].vcFinishedornot" nzName="radiogroup"
                                            [nzDisabled]="sumaryDisable">
                                            <label nz-radio nzValue="1">已完成</label>
                                            <label nz-radio nzValue="0">未完成</label>
                                        </nz-radio-group>
                                    </nz-input-group>
                                </div>
                            </div>
                            <div nz-row *ngIf="addData[i-1].vcFinishedornot=='0'">
                                <div nz-col nzSpan="24">
                                    <nz-input-group nzAddOnBefore="未完成设备" *ngIf="addData[i-1].vcFinishedornot=='0'">
                                        <div>
                                            <label nz-col nz-checkbox [(ngModel)]="data.checked"
                                                [nzDisabled]="sumaryDisable"
                                                *ngFor="let data of tabCmpData[i-1].workdevListForsel_xj;">{{data.opName}}</label>
                                        </div>
                                    </nz-input-group>
                                </div>
                            </div>
                            <div nz-row>
                                <div nz-col nzSpan="24" style="display: flex;">
                                    <nz-input-group nzAddOnBefore="遗留问题">
                                        <textarea nz-input [(ngModel)]="addData[i-1].vcUnfiReason"
                                            [disabled]="sumaryDisable"></textarea>
                                    </nz-input-group>
                                    <!-- 遗留问题:
                                        <textarea nz-input [(ngModel)]="addData[i-1].vcFinished"></textarea> -->
                                </div>
                            </div>

                        </ng-container>

                        <ng-template #anothercontent2>
                            <div>
                                <nz-input-group nzAddOnBefore="工区">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXORGNAME" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="作业地点">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXPLACE" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="作业日期">
                                    <textarea nz-input readonly>{{mainRow.RWXWORKDAY|date:"yyyy-MM-dd"}}</textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="日计划号">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXID" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="级别">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXLEVEL" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group nzAddOnBefore="作业项目及工作内容">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXTYPE" readonly></textarea>
                                </nz-input-group>
                                <nz-input-group [nzAddOnBefore]="pfjhgznrjzyyxfw">
                                    <textarea nz-input [(ngModel)]="mainRow.RWXPROJECT"
                                        [nzAutosize]="{ minRows:2, maxRows: 5 }" readonly></textarea>
                                </nz-input-group>
                                <ng-template #pfjhgznrjzyyxfw>
                                    批复计划的工作内容<br>及作业影响范围
                                </ng-template>
                                <nz-input-group nzAddOnBefore="天窗内作业时间">
                                    <textarea nz-input readonly>{{mainRow.RWXSTIME}}-{{mainRow.RWXETIME}}</textarea>
                                </nz-input-group>
                            </div>
                        </ng-template>
                        <!-- </div> -->
                    </nz-tab>
                </nz-tabset>

            </nz-modal>
        </ng-template>

    </div>
</div>